package DataStructure.LinkedLearning.SingleLinkedList.LinearList;

/**
 *  学习 使用单链表实现一个线性表
 *      线性表功能：添加、删除、查找、替换
 */
public class Demo {
    public static void main(String[] args) {
        MySingleLinked mySingleLinked = new MySingleLinked();
        mySingleLinked.add("辉夜");
        //mySingleLinked.add("白银");
        System.out.println(mySingleLinked);
        //mySingleLinked.delete("银");
        mySingleLinked.delete("辉夜");
        //mySingleLinked.delete("辉");
        //System.out.println(mySingleLinked);
        //System.out.println(mySingleLinked.search(5));
        //mySingleLinked.replace(2,"藤原千花");
        System.out.println(mySingleLinked);
    }
}
